package com.ad_hccm.service.impl.TreatmentHistory;

import com.ad_hccm.dao.TreatmentHistory.OtherDiseaseOneDao;
import com.ad_hccm.domain.TreatmentHistory.OtherDiseaseOne;
import com.ad_hccm.service.TreatmentHistory.OtherDiseaseOneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 高血压、糖尿病治疗史ServiceImpl
 */
@Service
public class OtherDiseaseOneServiceImpl implements OtherDiseaseOneService {
    @Autowired
    private OtherDiseaseOneDao otherDiseaseOneDao;

    @Override
    public boolean save(OtherDiseaseOne otherDiseaseOne) {
        return otherDiseaseOneDao.save(otherDiseaseOne);
    }

    @Override
    public boolean update(OtherDiseaseOne otherDiseaseOne) {
        return otherDiseaseOneDao.update(otherDiseaseOne);
    }

    @Override
    public OtherDiseaseOne getById(String id) {
        return otherDiseaseOneDao.getById(id);
    }

    @Override
    public List<OtherDiseaseOne> getAll() {
        return otherDiseaseOneDao.getAll();
    }
}
